<?
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";

$MyMenuDB=new YYBDB();
//CheckRule($MenuId,$MyMenuD,$SystemTablename[2],"Update");//检查登陆权限
$myClass=new ADMINClass();

$CurrMenuId=$_REQUEST["CurrMenuId"];
$MenuId=$_REQUEST["MenuId"];
if(strlen($CurrMenuId)<1)
{
	$CurrMenuId=0;
}
if(strlen($MenuId)<1)
{
	$MenuId=0;
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改栏目</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?
$MenuName=$_REQUEST["SysMenu1"];
$MenuOrder=$_REQUEST["SysMenu3"];
if(strlen($MenuOrder)<1) $MenuOrder=1;
$StrTemp=$_REQUEST["SysMenu2"];


if(strlen($StrTemp)>0)
{
		$MenuSysFile_arr=explode("|",$StrTemp);
		$MenuSysFile=$MenuSysFile_arr[0];
		$MenuSysName=$MenuSysFile_arr[1];
		$MenuSysConfigFile=$MenuSysFile_arr[2];
		$TableName=$MenuSysFile_arr[3];
}
$MenuFields[0]=$CurrMenuId;
$MenuFields[2]=$MenuSysFile;
$MenuFields[1]=$MenuName;
$MenuFields[4]=$MenuOrder;
$MenuFields[5]=str_replace(" ","",$MenuSysName);
$MenuFields[6]=str_replace(" ","",$MenuSysConfigFile);
$MenuFields[9]=str_replace(" ","",$TableName);
$MenuFields[12]=$_REQUEST["urllinks"];//栏目链接

$MyMenuDB->TableName=$SystemTablename[2];
$MyMenuDB->ArrFields=$MenuFields;
$MyMenuDB->Update();


echo "栏目修改成功，<a href=Index.php>返回</a>！";
?>
<script language="javascript">
<!--
   window.parent.frames.item("leftFrame").location.reload();  
-->
</script>
</body>
</html>